
export function deepCopy(target: any) {
  if (target === null) return target;
  if (typeof target !== 'object') return target;
  
  const result: { [key: string]: any } = Array.isArray(target) ? [] : {};
  
  for (const key in target) {
    if (target.hasOwnProperty(key)) {
      result[key] = deepCopy(target[key]);
    }
  }
  
  return result;
}

export function generateUniqueId() {
  return 'id-' + Date.now() + '-' + Math.random().toString(36).substring(2, 9);
}